﻿//////////////////////////////////////////////////////////////////////////////
//
//  Copyright © 1998-2024 Glodon Company Limited.  All rights reserved.
//
//  Use of this software is subject to the terms of the Glodon license
//  agreement provided at the time of installation or download, or which
//  otherwise accompanies this software in either electronic or hard copy form.  
//
//////////////////////////////////////////////////////////////////////////////


#pragma once
#include "GnufUiCommonDef.h"
#include "GnufCustomizedPreferenceEntry.h"

namespace gnuf {
    class GNUF_BASE_EXPORT DynamicZoneButtonStylePreferenceEntry final
        : public CustomizedPreferenceEntryWithValue<gnuf::EButtonDisplayStyle> 
    {
    public:
        explicit DynamicZoneButtonStylePreferenceEntry(PreferenceEntryGroup * group);
        virtual ~DynamicZoneButtonStylePreferenceEntry();

        static void addEntryCreator(const std::wstring& key);
        static void removeEntryCreator(const std::wstring& key);

        // Inherits from CustomizedPreferenceEntryWithValue...
        virtual const std::wstring valueAsString() const override;
        virtual void setValueAsString(const std::wstring &) override;
        virtual QtPreferenceEntry * makeQtWidget() override;
    };
}
